import api from "./api.js";
import store from "../store/store.js";


export const initUser = () => {
    api.get('/common/getUserInfo').then(res => {
        console.log(res)
        store.commit('setUserId', res.data.userid)
        store.commit('setUserNickname', res.data.nickname)
    })
}